<?php
// calling the header.php
get_header();

// action hook for placing content above #container
thematic_abovecontainer();

?>

		<div id="container">
		
			<div id="content">
	
	            <?php
	            $width = '290';
	            $height = '210';
	            $paged = get_query_var('paged');
	            $paged = $paged ? $paged : 1;
				global $wp_query;
				$temp = $wp_query;
				$portfolio_cat = get_option(THEME_NAME . '_portfolio_cat', 1);
				$portfolio_showposts = get_option(THEME_NAME . '_portfolio_showposts', 6);
				$args = array(
					'cat'		=>	$portfolio_cat,
					'showposts' =>	$portfolio_showposts,
					'paged'		=> 	$paged
				);
				$wp_query = new WP_Query($args);
				if(have_posts()){
				?>
					<ul id="portfolio" class="style-none">
				<?php 
					while (have_posts()){
						the_post();
				?>
					<li>
						<a title="<?php the_title();?>" href="<?php the_permalink();?>">
				<?php
					if(has_post_thumbnail()){
						$thumb = wp_get_attachment_image_src(
								get_post_thumbnail_id(), 'full');
						echo get_timthumb_img_src($thumb[0], $width, $height,
								get_the_title(), 'img-shadow');
					} 
				?>
						</a>
						<h3>
							<a href="<?php the_permalink();?>">
								<?php the_title();?>
							</a>
						</h3>
					</li>
				<?php 
					}
				?>
				</ul><!-- #portfolio -->
				<?php 
				thematic_nav_below();
				}
				$wp_query = null;
				$wp_query = $temp;
				?>
	
			</div><!-- #content -->
			
		</div><!-- #container -->
<?php

// action hook for placing content below #container
thematic_belowcontainer();

// calling footer.php
get_footer();
